#include<bits/stdc++.h>
using namespace std;
int n,a[100005],sz[100005];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&a[i]);
        sz[a[i]]++;
    }
    int summ=0;
    for(int i=1;i<=100000;i++){
        summ-=min(summ,sz[i]);
        summ+=sz[i];
    }
    cout<<summ;
    return 0;
}